package com.qf.person;

/**
 * @author wangyu
 * @Classname: TestPersonUpdate
 * @Description: TEST
 * @date 2022-04-05 18:53
 */
public class TestPersonUpdate {
    public static void main(String[] args) {
//        测试新增
        PersonDaoimpl personDaoimpl = new PersonDaoimpl();
        Person  person = new Person(10,"lisi",18,DateUtils.strToUtil("1997-08-06"),"wangyu@.com","上海市浦东新区");
        int result = personDaoimpl.update(person);
        if(result == 1){
            System.out.println("修改成功");
        }else {
            System.out.println("修改失败");
        }
    }
}

